#include <Timer.h>
#include "StorageVolumes.h"

configuration MainApp {

}

implementation {
	components MainAppC as App;
	components new TimerMilliC() as Timer0;
	components new TimerMilliC() as Timer1;
	components new AMSenderC(6); 
	components new AMReceiverC(6);
	components ActiveMessageC;		
	
	components new ConfigStorageC(VOLUME_CONFIGTEST);
	
	components DataC;
	components CC2420PacketC;	
	App.Data->DataC;
	
	components new LogStorageC(VOLUME_LOGTEST, TRUE);
	DataC.LogWrite->LogStorageC.LogWrite;
	DataC.LogRead->LogStorageC.LogRead;	
	
	components MainC;
	App.Boot->MainC;	
	
	components LEDC;
	App.LEDControl->LEDC;
	
	components LedsC;
	LEDC.Leds->LedsC;

	components UserButtonC;
	App.Button->UserButtonC;	
	
	components SendC;
	SendC.Timer0-> Timer0;
	SendC.Timer1->Timer1;
	SendC.LEDControl-> LEDC;
	SendC.Packet->AMSenderC;
	SendC.AMPacket->AMSenderC;
	SendC.AMSend->AMSenderC;
	SendC.AMControl->ActiveMessageC;
	App.SendControl->SendC;
	SendC.Data->DataC;
		
	components ReceiveC;
	ReceiveC.LEDControl-> LEDC;
	ReceiveC.Receive->AMReceiverC;
	ReceiveC.Data->DataC;
	ReceiveC.CC2420Packet->CC2420PacketC;
	ReceiveC.SendFunctions->SendC;
		

		
}